/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 
 package bluetoothserver.dataStore;

/**
 * @author Philip
 * @version 1.0 Final
 */
public class Answer {

    private String title;
    private int type;
    private String answer;

    /**
     * Constructor for a singluar answer sent from a mobile device
     * @param t Title of the question being answered
     * @param ty Question Type of the question being answered
     * @param a Answer given by the mobile device
     */
    public Answer(String t, int ty, String a){
        title = t;
        type = ty;
        answer = a;
    }
    /**
     * Returns the questions title
     * @return Quesiton title
     */
    public String getTitle(){
        return title;
    }

    /**
     * Returns the question type
     * @return question type
     */
    public int getType(){
        return type;
    }

    /**
     * returns the answer given
     * @return answer
     */
    public String getAnswer(){
        return answer;
    }
}